<!DOCTYPE html>
<html>
	<head lang="en">
		<meta charset="UTF-8" />
		<title>伪类选择器</title>
		<style type="text/css">
			div a:hover
            {
                font-size: 30px;
            }
            p a:hover{
                font-weight: bold
            }
		</style>
	</head>
	<body>
		<div>
			<a href="http://www.demo.com">点击一下</a>
		</div>
		<p>
			<a href="http://www.baidu.com">百度一下</a>
		</p>
	</body>
</html>